package com.gluck.cases.boostrap.config.shiro.jwt;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @ClassName JwtToken
 * @Desc 重写UsernamePasswordToken
 * @Author I am Gluck
 * @Date 2022/5/17 - 11:18 上午
 **/
public class JwtToken implements AuthenticationToken {

    /**
     * Token
     */
    private String token;

    public JwtToken(String token) {
        this.token = token;
    }

    @Override
    public String getPrincipal() {
        return token;
    }

    @Override
    public String getCredentials() {
        return token;
    }
}
